package com.feinno.urcs.group.main;

import java.util.Base64;

/**
 * Created by honghao on 9/15/15.
 */
public class Test {
	public static void main(String args[]) {

		String hexString = "0x3e7";
		if (!hexString.startsWith("0x")) {

		}
		int result = 0;
		for (int i = 2; i < hexString.length(); i++) {
			char c = hexString.charAt(i);
			int v = 0;
			if (c >= '0' && c <= '9') {
				v = c - '0';
			} else if (c >= 'a' && c < 'f') {
				v = (int) c - 'a';
			} else {

			}
			result =   result* 16 +v ;
		}
		System.out.println(result);
		System.out.println(Integer.toBinaryString(999));
//		1111100111

//		int n = 10;
//		for (int i = 0; i < n; i--) {
//			System.out.print("=");
//		}
	}
}
